STEP 3: Our ship needs to be a little smaller to fit through the oncoming asteroids.

  • Go to and drag out Set Size. Drop it at the bottom of your program, below the sprite.

Set size can make a sprite smaller or larger. The scale factor is 0.5, so our sprite will be half its original size.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("space") sprite = codesters.Sprite("spaceship")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)